package com.xzg.erp.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzg.erp.common.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 产品表
 * </p>
 *
 * @author qwc
 * @since 2025-02-12
 */
@Getter
@Setter
@ToString
@TableName("product")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品名称
     */
    @TableField("name")
    private String name;

    /**
     * 产品编码
     */
    @TableField("code")
    private String code;

    /**
     * 规格
     */
    @TableField("specification")
    private String specification;

    /**
     * 单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
}
